.dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}
.dialog-content {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  min-height: 280px;
  background: #ffffff;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
}
.dialog-header {
  height: 50px;
  border-bottom: 1px solid;
  line-height: 50px;
  position: relative;
}
.dialog-header span {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  line-height: 30px;
  text-align: center;
}
.dialog-center {
  flex: 1;
}
.dialog-btns {
  height: 50px;
  border-top: 1px solid;
}